package com.jidu.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jidu.common.annotation.Excel;
import com.jidu.common.core.domain.BaseEntity;

/**
 * 学生课程关系对象 course_student_rel
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@ApiModel(value = "CourseStudentRel",description = "学生课程关系对象")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("course_student_rel")
@Data
public class CourseStudentRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    @ApiModelProperty(value = "学生id")
    private Long studentId;

    /** 课程id */
    @Excel(name = "课程id")
    @ApiModelProperty(value = "课程id")
    private Long courseId;

    /** 老师id */
    @Excel(name = "老师id")
    @ApiModelProperty(value = "老师id")
    private Long teacherId;

    /** 教室id */
    @Excel(name = "教室id")
    @ApiModelProperty(value = "教室id")
    private Long classId;

    /** 已购买课时数 */
    @Excel(name = "已购买课时数")
    @ApiModelProperty(value = "已购买课时数")
    private Integer num;

    /** 剩余课时数 */
    @Excel(name = "剩余课时数")
    @ApiModelProperty(value = "剩余课时数")
    private Integer resNum;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    /** 状态(0未开始，1进行中，2已结课，3退课) */
    @Excel(name = "状态(0未开始，1进行中，2已结课，3退课)")
    @ApiModelProperty(value = "状态(0未开始，1进行中，2已结课，3退课)")
    private String status;

    /** 请假次数 */
    @Excel(name = "请假次数")
    @ApiModelProperty(value = "请假次数")
    private Integer leaveTimes;

    /** 删除标志(0正常，1删除) */
    private String delFlag;

    @ApiModelProperty(value = "门店id")
    private Long orgId;

    @ApiModelProperty(value = "是否转班 0否，1旧班级，2新班级")
    private String isChangeClass;

}
